/*
Author: Surpass-HC
Source: https://gitee.com/hxchuan000/clpc-1
Mail: surpass-hc@qq.com
*/
#ifndef __LIGHT_PROTOCOL_HOST_DO_COMMAND_H__
#define __LIGHT_PROTOCOL_HOST_DO_COMMAND_H__
#include <clptcConfig.h>
#include <clptcDlgItf.h>
#include <queObj.h>

#if CLPTC_CPL_HOST_ENABLE
typedef struct
{
    uint16_t cmdid;
    uint8_t cmddt[32];
} clptcHostCmdData;

typedef struct
{
    clptcFunItfStc *funptr;
    clptcDlgItfStc cmdDlg;
    char cmdFifo[queObjCalcTotal(10, sizeof(clptcHostCmdData), 1)];
} clptcHostDoCmdOpt;

int clptcHostDoCmdInit(clptcHostDoCmdOpt *doCmdPtr, clptcFunItfStc *funptr);
int clptcHostDoCmdRun(clptcHostDoCmdOpt *doCmdPtr);
#endif

#endif